﻿<%@ Page Language="C#" MasterPageFile="~/SanPham.Master" AutoEventWireup="true" CodeBehind="ThanhToan.aspx.cs" Inherits="GiaoDien.WebForm4" Title="Untitled Page" %>
<%@ Register Assembly="CollectionPager" Namespace="SiteUtils" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="NoiDungChinh" runat="server">

    <div id="content_top"></div>
<div id="content_middle">
 <h3>Giỏ hàng</h3>
    <div class="detail_box">
      <div class="sidebar_box_content">
          <div id="login_box">
	    <asp:GridView ID="GrGioHang" runat="server" AutoGenerateColumns="False" Width="100%">
               <Columns>
                   <asp:BoundField DataField="TenSanPham" HeaderText="Tên Sản Phẩm" />
                   <asp:BoundField DataField="SoLuong" HeaderText="Số Lượng" >
                       <ItemStyle HorizontalAlign="Center" />
                   </asp:BoundField>
                   <asp:BoundField DataField="GiaBanQuiDinh" HeaderText="Giá Bán" >
                       <ItemStyle HorizontalAlign="Center" />
                   </asp:BoundField>
                   <asp:TemplateField HeaderText="Thành Tiền">
                       <ItemTemplate>
                           <asp:Label ID="lblThanhTien" runat="server" Text='<%# Int32.Parse(Eval("SoLuong").ToString()) * Int32.Parse(Eval("GiaBanQuiDinh").ToString())+" VND" %>'></asp:Label>
                       </ItemTemplate>
                       <ItemStyle HorizontalAlign="Right" />
                   </asp:TemplateField>
               </Columns>
           </asp:GridView>
           
           <table style="width: 100%">
               <tr>
                   <td>
                       &nbsp;</td>
                   <td>
                       &nbsp;</td>
                   <td width="150px">
                       <font color="#FF0000"><b>Tổng tiền : </b></td>
                   <td width="150px" align="right">
                       <asp:Label ID="lblTongTien" runat="server" Text="0" onload="lblTongTien_Load"></asp:Label>
                       &nbsp;VNĐ</td>
               </tr>
               <tr>
                   <td>
                
	               </td>
                   <td>
                       &nbsp;</td>
                   <td width="150px">
                       <font color="#FF0000"><b>Phí vận chuyển :      <td width="150px" align="right">
                       <asp:Label ID="lblPhiVanChuyen" runat="server" Text="0" onload="lblPhiVanChuyen_Load"></asp:Label>&nbsp;VNĐ</td>
               </tr>
           </table>
           <font color="#FF0000"><asp:Label ID="lblThongBao" runat="server" Font-Bold="True"></asp:Label>
                                            <br />
               <asp:Label ID="lblKetQuaVanChuyen" runat="server" Text=""></asp:Label>
          </div>
    </div>
      <p>&nbsp;</p>
  </div>
        
        <h3>Thông tin giao hàng                 
          </h3>
    <div class="detail_box">
      <div class="sidebar_box_content">
          <div id="login_box">
      <table width="100%" border="0">
        <tr>
          <td width="20%" align="left">Người nhận</td>
          <td width="80%" align="left"><label>
              <asp:TextBox ID="txtNguoiNhan" runat="server" Width="202px"></asp:TextBox>
              &nbsp;</label></td>
        </tr>
        <tr>
          <td width="20%" align="left">&nbsp;</td>
          <td width="80%" align="left" class="style2">&nbsp;</td>
        </tr>
        <tr>
          <td width="20%" align="left">Địa chỉ</td>
          <td align="left"><label>
              <asp:TextBox ID="txtDiaChi" runat="server" Height="63px" style="height: 36px" 
                  TextMode="MultiLine" Width="477px"></asp:TextBox>
              &nbsp;</label></td>
        </tr>
        <tr>
          <td width="20%" align="left">&nbsp;</td>
          <td width="80%" align="left" class="style2">&nbsp;</td>
        </tr>
        <tr>
          <td width="20%" align="left">Thành phố :</td>
          <td align="left">
              
              <asp:DropDownList ID="cboThanhPhoDen" runat="server" Width="209px" 
                  onselectedindexchanged="cboThanhPhoDen_SelectedIndexChanged" 
                  AutoPostBack="True">
              </asp:DropDownList>
            </td>
        </tr>
        <tr>
          <td width="20%" align="left">&nbsp;</td>
          <td width="80%" align="left" class="style2">&nbsp;</td>
        </tr>
        <tr>
          <td width="20%" align="left">Số điện thoại</td>
          <td align="left">
              <asp:TextBox ID="txtDienThoai" runat="server" Width="206px"></asp:TextBox>
              <label>
              &nbsp;</label></td>
        </tr>
        <tr>
          <td width="20%" align="left">&nbsp;</td>
          <td width="80%" align="left" class="style2">&nbsp;</td>
        </tr>
        
      </table>
    
          </div>
    </div>
    <br/>
    </div>
    
    <h3>Phương pháp chuyển hàng</h3>
    <div class="detail_box">
      <div class="sidebar_box_content">
          <div id="login_box">
            <table width="100%" border="0">
            
                <tr>
                  <td align="left">
                      
                      <asp:DropDownList ID="cboHinhThucVC" runat="server" Width="200px" 
                          AutoPostBack="True" onselectedindexchanged="cboHinhThucVC_SelectedIndexChanged">
                      </asp:DropDownList>
                      
                    </p>
                    <p>
                        &nbsp;</p>
                  </td>
                </tr>
            </table> 
          </div>
    </div>
      <p>&nbsp;</p>
    </div>
    <br/>
    <h3>Chú thích đơn đặt hàng</h3>
    <div class="detail_box">
      <div class="sidebar_box_content">
          <div id="login_box">
            <table width="100%" border="0">
                <tr>
                  <td width="20%" align="left">Nội dung tin</td>
                  <td align="left">
                  <label>
                    <textarea name="chuthich" cols="40" rows="4" id="textfield"></textarea>
                  </label>
                  </td>
                </tr>
            </table>
          </div>
    </div>
      <p>&nbsp;</p>
    </div>
    <br />
    
    <h3>&nbsp;</h3>
    <h3>&nbsp;</h3>
    <h3>&nbsp;</h3>
    <h3>&nbsp;</h3>
    <h3>Phương thức thanh toán</h3>
    <div class="detail_box">
      <div class="sidebar_box_content">
          <div id="login_box">
            <table width="100%">
             <tr valign="middle" align="left">
                <td width="30%"><label>Số Seri</label></td>
                <td width="90%">
                    <asp:TextBox ID="txtMaThe" runat="server" Width="254px"></asp:TextBox>
                    <label>
                    &nbsp;<asp:Button ID="btnkiemtrathe" runat="server" onclick="btnkiemtrathe_Click" 
                        Text="Kiểm tra thẻ" />
                </label>
                 </td>
              </tr>
              <tr valign="middle" align="left">
                <td width="30%"><label>Mã Pin</label></td>
                <td width="90%"><label>
                    <asp:TextBox ID="txtMaPin" runat="server"></asp:TextBox>
                </label></td>
              </tr>
             
            </table>
        </div>
    </div>
      <p>&nbsp;</p>
    </div>
    
    <h3>Tổng chi phí</h3>
    <div class="detail_box">
      <div class="sidebar_box_content">
          <div id="login_box">
            <p class="style1">Tổng chi phí :
                <asp:Label ID="lblTongChiPhi" runat="server" Text="0"></asp:Label> 
                &nbsp;VNĐ</p>
          </div>
    </div>
      <p>
          <asp:Button ID="btnXacNhan" runat="server" Text="Xác nhận thanh toán đơn hàng" 
              onclick="btnXacNhan_Click" /></p>
    </div>
    
  <div class="cleaner"></div>
            
</div>
<div id="content_bottom"></div>
</font>
</asp:Content>
